cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(hcn)

# include("~/cmake/index.cmake")
set(CMAKE_PREFIX_PATH "~/cmake/libtorch" ${CMAKE_PREFIX_PATH})
# set(Torch_DIR "~/cmake/libtorch/share/cmake/Torch")
# set(CMAKE_PREFIX_PATH "~/cmake")
# set(CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Debug)
message(CMAKE_PREFIX_PATH: "${CMAKE_PREFIX_PATH}")

# include_directories("./")
# LINK_DIRECTORIES("~/cmake/libtorch")

find_package(Torch REQUIRED)
message(TORCH_LIBRARIES: "${TORCH_LIBRARIES}")

add_executable(hcn main.cpp hcn.cpp)
target_link_options(hcn PRIVATE -static-libgcc -static-libstdc++)
target_link_libraries(hcn "${TORCH_LIBRARIES}")
set_property(TARGET hcn PROPERTY CXX_STANDARD 17)

